package com.example.androidframework.ui.guide.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.androidframework.R
import com.martin.lib_base.bean.app.splash.GuideData

class GuidePageAdapter : BaseQuickAdapter<GuideData, BaseViewHolder>(R.layout.guide_list_item) {

    override fun convert(holder: BaseViewHolder, item: GuideData) {
        // 加载网络图片
        Glide.with(context).load(item.thumb).into(holder.getView(R.id.img))
    }
}